#include "mainwindow.h"
#include "ui_mainwindow.h"

#include "test.h"
#include "testb.h"

#include <QThread>
#include <QDebug>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow),
    tb(new TestB)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    qDebug() << __func__ << __LINE__ << " Pid: " << QThread::currentThreadId();
}

void MainWindow::on_pushButton_2_clicked()
{
    tb->test();
}
